package leecode

func trainningPlan(head *ListNode) (result *ListNode) {
	for head != nil {
		temp := head.Next
		head.Next = result
		result = head
		head = temp
	}
	return
}
